package io.lckgroup.modules.lck.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.modules.lck.entity.CommonCommentEntity;
import io.lckgroup.modules.lck.entity.CustomerInfoEntity;

import java.util.Map;

/**
 * 顾客评论表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:38
 */
public interface CommonCommentService extends IService<CommonCommentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //通过ShopFoodEntity参数来分页查询
    PageUtils queryPageByEntity(Map<String, Object> params, CommonCommentEntity commonCommentEntity);

    //插入评价
    int createComment(CommonCommentEntity commonCommentEntity);

    PageUtils getMyCommentByState(Map<String, Object> params, CustomerInfoEntity customerInfoEntity);
    //分页查询商家的所有评论
    PageUtils merchantCommentList(Map<String, Object> params);
}

